package org.gten.gegedexin.service;

import org.gten.gegedexin.Data.Draft;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class StoreDraft {
    @Autowired
    DraftServiceImpl draftService;

    public void store(Draft draft){
        draftService.addDraft(draft.getReceiver(),draft.getSender(), draft.getTitle(), draft.getText(), LocalDateTime.now());
    }
}
